package com.rk.kbk.dao;

import com.rk.kbk.model.Goods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @GoodsDao
 * @商品Dao
 * @version : Ver 1.0
 */
public interface GoodsDao extends JpaRepository<Goods, Long>,JpaSpecificationExecutor {
         List<Goods> findByGoodsType(int goodsType);
    Goods findByIdAndGoodsType(Long id,int goodsType);
}
